//
//  MMButton.h
//  EraPig
//
//  Created by Mac_Mini on 2021/2/24.
//

#import <UIKit/UIKit.h>
#import "UIButton+MMAdd.h"
NS_ASSUME_NONNULL_BEGIN

@interface MMButton : UIButton

/// 常规的一种初始化方法
/// @param buttonType 按钮类型
/// @param frame frame
/// @param titleColor 字体颜色
/// @param size 字体大小
+ (MMButton *)buttonWithType:(UIButtonType)buttonType
                       frame:(CGRect)frame
                  titleColor:(UIColor *)titleColor
                   titleSize:(CGFloat)size;

/// 常规的一种初始化方法
/// @param buttonType 按钮类型
/// @param titleColor 字体颜色
/// @param size 字体大小
+ (MMButton *)buttonWithType:(UIButtonType)buttonType
                  titleColor:(UIColor *)titleColor
                   titleSize:(CGFloat)size;

/// 渐变色初始化方法
/// @param buttonType 按钮类型
/// @param frame frame
/// @param titleColor 字体颜色
/// @param size 字体大小
/// @param gradientColors 渐变色颜色数组  (__bridge id)color.CGColor
/// @param startPoint 渐变开始坐标
/// @param endPoint 渐变结束坐标
/// @param locations 变化位置
+ (MMButton *)buttonWithType:(UIButtonType)buttonType
                       frame:(CGRect)frame
                  titleColor:(UIColor *)titleColor
                   titleSize:(CGFloat)size
          gradientBackground:(NSArray <UIColor *>*)gradientColors
                  startPoint:(CGPoint)startPoint
                    endPoint:(CGPoint)endPoint
                   locations:(NSArray <NSNumber *>*)locations;
@end

NS_ASSUME_NONNULL_END
